﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" x:Class="Lottery.Client.SL.Login"
    mc:Ignorable="d"
    d:DesignHeight="665" d:DesignWidth="260" Width="260" Height="665">

    <Canvas x:Name="LayoutRoot">
        <Canvas.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF3F4447"/>
                <GradientStop Color="Black" Offset="0.262"/>
                <GradientStop Color="#FF212629" Offset="0.98"/>
                <GradientStop Color="#FF0D0E0E" Offset="1"/>
                <GradientStop Color="Black" Offset="0.766"/>
                <GradientStop Color="#FFE4E507" Offset="0.496"/>
            </LinearGradientBrush>
        </Canvas.Background>
        <Canvas x:Name="CvMainWindow">
            <Image x:Name="Logo" Height="93" Canvas.Left="9" Source="Images/logo.png" Stretch="Fill" Canvas.Top="49" Width="90" Opacity="0.9"/>
            <Ellipse Height="338.451" Canvas.Top="-206" Width="338.455" RenderTransformOrigin="0.5,0.5" Canvas.Left="-120">
                <Ellipse.RenderTransform>
                    <CompositeTransform Rotation="180"/>
                </Ellipse.RenderTransform>
                <Ellipse.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Offset="0.543" Color="#00101112"/>
                        <GradientStop Color="#19FFFFFF"/>
                    </LinearGradientBrush>
                </Ellipse.Fill>
            </Ellipse>
            <Path Data="M126,63 C126,63 0,63 0,63 C0,28.20606 28.20606,0 63,0 C97.793938,0 126,28.20606 126,63 z" Height="45.361" Stretch="Fill" StrokeThickness="0" Canvas.Top="58.148" Width="90.721" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Canvas.Left="23.476" >
                <Path.RenderTransform>
                    <CompositeTransform Rotation="405"/>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Offset="1" Color="Transparent"/>
                        <GradientStop Color="#E0FFFFFF"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Rectangle Height="341" Width="260" RadiusX="1" RadiusY="1" Canvas.Top="146" StrokeThickness="0">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Offset="1" Color="#19528CA5"/>
                        <GradientStop Color="#FF99AEBE" Offset="0.488"/>
                        <GradientStop Color="#FF4C545A"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Ellipse Height="1" StrokeThickness="0" Canvas.Top="26" Width="260">
                <Ellipse.Fill>
                    <RadialGradientBrush>
                        <GradientStop Offset="1" Color="#05C8C8C8"/>
                        <GradientStop Color="#4CFFFFFF" Offset="0.401"/>
                    </RadialGradientBrush>
                </Ellipse.Fill>
            </Ellipse>
            <TextBlock Height="32" Canvas.Left="106" TextWrapping="Wrap" Canvas.Top="64" Width="144" FontFamily="Arial Black" FontSize="17"><TextBlock.Foreground>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FFE4F7EF" Offset="0.488"/>
    				<GradientStop Color="White"/>
    				<GradientStop Color="#FFFFF500" Offset="1"/>
    			</LinearGradientBrush>
    		</TextBlock.Foreground><Run Text="Grand Emperor"/></TextBlock>
            <TextBlock x:Name="tbVer" Height="24" Canvas.Left="130" TextWrapping="Wrap" Canvas.Top="402" Width="110" Foreground="#FFF5DEDE" FontSize="15" FontStyle="Italic"/>
            <Path Data="M148.42863,23.84874 C148.42863,23.84874 69.533432,118.10006 69.533432,118.10006 C98.991966,118.8027 60.299889,135.96063 89.758438,136.66327 C89.758438,136.66327 148.42863,23.84874 148.42863,23.84874 z" Height="310.648" Stretch="Fill" StrokeThickness="0" Canvas.Top="-47.97" UseLayoutRounding="False" Width="122.869" RenderTransformOrigin="0.5,0.5" Canvas.Left="87.674">
                <Path.RenderTransform>
                    <CompositeTransform Rotation="13.693" TranslateX="39.247570714977542" TranslateY="-19.057752784996012"/>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.834,0.213" StartPoint="0.443,0.761">
                        <GradientStop Offset="0"/>
                        <GradientStop Color="#19FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path Data="M140.50922,22.946896 C140.50922,22.946896 2.4004622,131.10461 2.4004622,131.10461 C2.4004622,131.10461 95.44416,130.76254 95.44416,130.76254 z" Height="412.189" Canvas.Left="-75.133" Stretch="Fill" StrokeThickness="0" Canvas.Top="143.784" UseLayoutRounding="False" Width="347.085" RenderTransformOrigin="0.5,0.5" d:IsHidden="True" d:IsLocked="True">
                <Path.RenderTransform>
                    <CompositeTransform Rotation="99.115" TranslateX="53.590190358706536" TranslateY="-41.878197399103726"/>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.339,0.908" StartPoint="0.718,0.35">
                        <GradientStop Offset="0"/>
                        <GradientStop Color="#19FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path Data="M90.598244,71.982643 C90.598244,71.982643 0.58315492,91.91288 0.58315492,91.91288 C59.752995,81.354607 144.89436,209.23669 144.89436,209.23669 C144.89436,209.23669 90.598244,71.982643 90.598244,71.982643 z" Height="293.743" Canvas.Left="-45.078" Stretch="Fill" StrokeThickness="0" Canvas.Top="-68.339" UseLayoutRounding="False" Width="207.43" RenderTransformOrigin="0.5,0.5" Opacity="0.5">
                <Path.RenderTransform>
                    <CompositeTransform Rotation="-75.121" TranslateX="60.718655217593351" TranslateY="-24.008689193941677"/>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.46,0.746" StartPoint="0.405,0.839">
                        <GradientStop Offset="0"/>
                        <GradientStop Color="#0AFFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path Data="M2817.6987,-64.927696 C626.00043,13.413555 -1794.6766,78.506187 -3524.3818,197.85738 C2131.9248,246.56493 2817.6987,-64.927696 2817.6987,-64.927696 z" Height="139.664" Stretch="Fill" StrokeThickness="0" UseLayoutRounding="False" Width="288.75" Canvas.Top="-104" RenderTransformOrigin="0.5,0.5" Canvas.Left="128">
                <Path.RenderTransform>
                    <CompositeTransform Rotation="170.859" TranslateX="-176.38145482305151" TranslateY="113.45942457655769"/>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.358,0.403" StartPoint="0.605,0.962">
                        <GradientStop Offset="0.66"/>
                        <GradientStop Color="#19FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path Data="M184.65169,105.00685 C184.65169,105.00685 -9.1024132,120.1936 -9.1024132,120.1936 C-9.1024132,120.1936 114.06072,143.09727 114.06072,143.09727 C114.06072,143.09727 184.65169,105.00685 184.65169,105.00685 z" Height="145.162" Canvas.Left="-258.424" Stretch="Fill" StrokeThickness="0" Canvas.Top="130.066" UseLayoutRounding="False" Width="486.927" RenderTransformOrigin="0.5,0.5" d:IsLocked="True" d:IsHidden="True">
                <Path.RenderTransform>
                    <CompositeTransform Rotation="68.541" TranslateX="90.342998124885753" TranslateY="197.3196501188354"/>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.339,0.908" StartPoint="0.951,0.077">
                        <GradientStop Offset="0"/>
                        <GradientStop Color="#19FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Canvas x:Name="用户名" Height="24" Canvas.Left="35" Canvas.Top="215" Width="192">
                <Rectangle Fill="White" Height="24" RadiusY="2" RadiusX="2" StrokeThickness="0" Width="192"/>
                <TextBox x:Name="tbUserName" Height="20" Canvas.Left="2" TextWrapping="Wrap" Canvas.Top="2" Width="188" BorderThickness="0"/>
            </Canvas>
            <Canvas x:Name="密码" Height="24" Canvas.Left="35" Canvas.Top="287" Width="192">
                <Rectangle Fill="White" Height="24" RadiusY="2" RadiusX="2" StrokeThickness="0" Width="192"/>
                <PasswordBox x:Name="tbPasswd" Height="20" Canvas.Left="2" Canvas.Top="2" Width="188" BorderBrush="{x:Null}"/>
            </Canvas>
            <TextBlock Height="14" Canvas.Left="7" TextWrapping="Wrap" Text="User login" Canvas.Top="5" Width="156" Foreground="#FFA9D6A2"/>
            <TextBlock Height="16" Canvas.Left="35" TextWrapping="Wrap" Text="Name:" Canvas.Top="190" Width="72" Foreground="#FFFFFFA2" FontFamily="Arial"  FontSize="13.333"/>
            <TextBlock Height="16" Canvas.Left="35" TextWrapping="Wrap" Text="PassWord:" Canvas.Top="262" Width="72" Foreground="#FFFFFFA2" FontFamily="Arial" FontSize="13.333"/>
            <Ellipse Height="1" StrokeThickness="0" Canvas.Top="380" Width="260">
                <Ellipse.Fill>
                    <RadialGradientBrush>
                        <GradientStop Offset="0.811" Color="#05C8C8C8"/>
                        <GradientStop Color="#4CFFFFFF"/>
                        <GradientStop Color="#00C8C8C8" Offset="1"/>
                    </RadialGradientBrush>
                </Ellipse.Fill>
            </Ellipse>
            <Canvas Height="14" Canvas.Left="73" Canvas.Top="518" Width="125" d:IsHidden="True">
                <Ellipse Height="14" StrokeThickness="0" Width="14">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
                <Ellipse Height="12" Canvas.Left="22" StrokeThickness="0" Canvas.Top="1" Width="12">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
                <Ellipse Height="10" Canvas.Left="44" StrokeThickness="0" Canvas.Top="2" Width="10">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
                <Ellipse Height="8" Canvas.Left="65" StrokeThickness="0" Canvas.Top="3" Width="8">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
                <Ellipse Height="6" Canvas.Left="85" StrokeThickness="0" Canvas.Top="4" Width="6">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
                <Ellipse Height="4" Canvas.Left="105" StrokeThickness="0" Canvas.Top="5" Width="4">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
                <Ellipse Height="2" Canvas.Left="123" StrokeThickness="0" Canvas.Top="6" Width="2">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#00ADAA9A" Offset="1"/>
                            <GradientStop Color="#CCFF4600" Offset="0.557"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
            </Canvas>
            <Canvas x:Name="LoginButton" Height="24" Canvas.Left="35" Canvas.Top="346" Width="77">
                <Rectangle Height="24" RadiusY="2" RadiusX="2" Width="77" Stroke="#4CFFFFFF" Fill="#0A232323"/>
                <TextBlock Height="15" Canvas.Left="30" TextWrapping="Wrap" Text="Login" Canvas.Top="3" Width="42" Foreground="White" FontFamily="Arial"  FontSize="13"/>
                <Path Data="M3.7693076,1.4583781 C3.4435873,1.4583781 3.1795385,1.7848465 3.1795387,2.1875656 L3.1795387,6.5626903 C3.1795385,6.9654098 3.4435873,7.2918777 3.7693076,7.2918777 L7.8976927,7.2918777 C8.2234135,7.2918777 8.4874611,6.9654098 8.4874611,6.5626903 L8.4874611,2.1875656 C8.4874611,1.7848465 8.2234135,1.4583781 7.8976927,1.4583781 z M3.7693076,0 L7.8976927,0 C8.874855,-8.8817842E-16 9.6669998,0.97940505 9.6669998,2.1875625 L9.6669998,7.3330078 L12,7.3330078 L12,15.333008 L0,15.333008 L0,7.3330078 L2,7.3330078 L2,2.1875625 C2,0.97940505 2.792146,-8.8817842E-16 3.7693076,0 z" Height="10.833" Canvas.Left="11" Stretch="Fill" Stroke="#4CFFFFFF" StrokeThickness="0" Canvas.Top="7.001" UseLayoutRounding="False" Width="9.286">
                    <Path.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFC4E4AA" Offset="0.557"/>
                            <GradientStop Color="White"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
            </Canvas>
            <Canvas x:Name="FindPass" Height="24" Canvas.Left="150" Canvas.Top="346" Width="77">
                <Rectangle Height="24" RadiusY="2" RadiusX="2" Width="77" Stroke="#4CFFFFFF" Fill="#0A232323"/>
                <TextBlock Height="15" Canvas.Left="7" TextWrapping="Wrap" Text="？" Canvas.Top="4" Width="13" Foreground="#FFC3E3A9" FontFamily="Arial" FontSize="13.333"/>
                <HyperlinkButton x:Name="lbFindPass" Height="18"  Content="Forgot" FontSize="12" Foreground="White" Canvas.Left="20" FontFamily="Arial" Canvas.Top="4" />
            </Canvas>
            <Rectangle x:Name="WindowDragMove" Height="22" RadiusY="5" RadiusX="5" StrokeThickness="0" Width="260" Fill="Transparent" MouseLeftButtonDown="WindowDragMove_MouseLeftButtonDown" />
            <Canvas x:Name="btnClose" Height="15" Canvas.Left="240" Canvas.Top="6" Width="15" Background="Transparent" MouseLeftButtonDown="btnClose_MouseLeftButtonDown">
                <Rectangle Fill="#7FFFFFFF" Height="10" Width="2" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Canvas.Left="6.335" Canvas.Top="2.001">
                    <Rectangle.RenderTransform>
                        <CompositeTransform SkewX="45"/>
                    </Rectangle.RenderTransform>
                </Rectangle>
                <Rectangle Fill="#7FFFFFFF" Height="10" Width="2" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Canvas.Left="6.335" Canvas.Top="2.001">
                    <Rectangle.RenderTransform>
                        <CompositeTransform SkewX="-45"/>
                    </Rectangle.RenderTransform>
                </Rectangle>
            </Canvas>
            <Canvas x:Name="Minimized" Height="15" Canvas.Left="222" Canvas.Top="6" Width="15" Background="Transparent" MouseLeftButtonDown="Minimized_MouseLeftButtonDown">
                <Rectangle x:Name="min" Fill="#7FFFFFFF" Height="2" Width="14" RenderTransformOrigin="0.5,0.5" StrokeThickness="0" Canvas.Top="5"/>
            </Canvas>
            <Canvas x:Name="ProCanvas" Height="70" Canvas.Left="20" Canvas.Top="240" Width="220"/>
        </Canvas>
        <Grid x:Name="gridInstall" Background="#7F000000" Canvas.Top="240">
            <Border x:Name="borderInstall" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2">
                <StackPanel Margin="20">
                    <TextBlock x:Name="lbInstall" Text="Click the button to the &quot;Grand of Emperor&quot; install on your computer" TextWrapping="Wrap" Foreground="Lime" Margin="5" HorizontalAlignment="Center" TextAlignment="Center"/>
                    <Button x:Name="btInstall" Content="Install" Style="{StaticResource buttonStyle0}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="75" Height="28" FontSize="16" Click="btInstall_Click" />
                </StackPanel>
            </Border>
        </Grid>
        <Grid x:Name="gridLoading" Visibility="Collapsed" Canvas.Top="240" Canvas.Left="20" Width="220" Height="120">
            <Border x:Name="border_Processing" VerticalAlignment="Center" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2">
                <StackPanel Margin="5">
                    <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="Lime" Margin="5" Height="14" HorizontalAlignment="Center"/>
                    <ProgressBar x:Name="progressBarLoading" Height="10" Width="200" IsIndeterminate="True"/>
                    <Button x:Name="btClose" Content="关闭" HorizontalAlignment="Center" VerticalAlignment="Center" Width="75" Height="22" FontSize="12" Click="btClose_Click" />
                </StackPanel>
            </Border>
        </Grid>
        <HyperlinkButton x:Name="hlbtnClear" Canvas.Left="216" Canvas.Top="630" Content="Clear" Height="20" Width="40" />
    </Canvas>
</UserControl>